﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AudioContent.aspx.cs" Inherits="admin_infomation_info_map_list" %>

<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>文章图片管理</title>
<meta http-equiv="Cache-Control" content="no-store, must-revalidate" />
<meta http-equiv="Pragma"        content="no-cache" />
<meta http-equiv="Expires"       content="0" />
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<script src="../js/jUtility.js" type="text/javascript"></script>
<script type="text/javascript"> 
function deldata(){
  	var s;
	var url;
	s = '该操作不能恢复,是否确认?'; 
	
	if(!isChecked(pageform.ids)){
		alert("请选择要删除的信息!");
		return false;
	}
	if (confirm(s)) {
		return true;
    }
    return false;
}


function searchdata(){
    pageform.submit();
    return false;
}
</script>
</head>

<body>
<form id="pageform" runat="server" method="post">
 <table width="100%" height="570" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
    <tr>
        <td height="414" align="left" valign="top" class="rightbg">
	        <table width="100%"  border="0" cellpadding="0" cellspacing="0">
	              <tr>
	                <td height="26">
	                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
	                        <tr>
	                            <td height="2" bgcolor="#A49B81"></td>
	                        </tr>
	                        <tr>
	                            <td height="22" background="../images/position_bg.gif" bgcolor="#EEF6FE" class="subnav" style="background-repeat:repeat-y; background-position:left; padding-left:6px; ">
	                                <asp:Label ID="headers" runat="server" />
	                            </td>
	                        </tr>
	                        <tr>
	                            <td height="1" bgcolor="#B0C9E8"></td>
	                        </tr>
	                    </table>
	                </td>
	              </tr>
	              <tr>
	                <td height="16"></td>
	              </tr>
	              <tr>
	                    <td height="21">
	                        <table border="0" cellpadding="0" cellspacing="0">
	                            <tr>
	                                <td width="25">&nbsp;</td>
	                                <td width="100" align="left">
	                                    <table width="80" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td width="3"><img src="../images/btn_blue_left.gif" width="3" height="21" /></td>
                                              <td width="26" align="center" background="../images/btn_blue_center.jpg"><img src="../images/icon_add.gif" width="16" height="14" /></td>
                                              <td align="left" background="../images/btn_blue_center.jpg" class="subnav"><asp:LinkButton runat="server" ID="add" OnClick="Add_click" >新 增</asp:LinkButton></td>
                                              <td width="3"><img src="../images/btn_blue_right.jpg" width="3" height="21" /></td>
                                            </tr>
                                        </table>
                                    </td>
	                            </tr>
	                        </table>        
	                     </td>
	                   </tr>
	              <tr>
	                 <td width="100%" valign="top">
    <table width="95%" height="75" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr >
    <td height="10" >
    &nbsp</td>
    </tr>
	<tr>
	<td height="29" align="center" valign="middle"><table width="98%" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="#C0D8EF">
	<tr>
	<td align="center" valign="middle"><table width="98%" height="20" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
	<td width="15%" height="20"  valign="middle">
	
	<input type="hidden" name="id" />
	每页显示数：　</td>
	<td width="10%" valign="middle">
	<asp:DropDownList ID="rows" runat="server" 
            onselectedindexchanged="rows_SelectedIndexChanged" AutoPostBack="true" >
         <asp:ListItem Text="5" Value="5" />
	    <asp:ListItem Text="10" Value="10" />
	    <asp:ListItem Text="15" Value="15" />
	    <asp:ListItem Text="20" Value="20" />
	    <asp:ListItem Text="50" Value="50" />
	    <asp:ListItem Text="1000" Value="1000" />
	</asp:DropDownList>
	</td>
	<td width="10%" valign="middle">按名称：　</td>
	<td width="30%" align="left" valign="middle">
        <asp:TextBox ID="keyword" runat="server"></asp:TextBox>
        <asp:Button ID="btnFind" runat="server"
            Text="搜索" onclick="btnFind_Click" />
	</td>
	<td width="10%" valign="middle">状态：　</td>
	<td width="30%" valign="bottom">
	<asp:DropDownList ID="qdocstate" runat="server" 
            onselectedindexchanged="qdocstate_SelectedIndexChanged" AutoPostBack="true">
	    <asp:ListItem  Text="已发布" Value="true" />
	    <asp:ListItem  Text="未发布" Value="false" />
        <asp:ListItem  Text="全部" Value="$"  Selected="true"/>
	    
	</asp:DropDownList>
	</td>
	</tr>
	</table></td>
	</tr>
	</table></td>
	</tr>
	</table></td>
	              </tr>
	              <tr>
	                  <td height="310" align="center" valign="top" style="padding-left:10px;">
	                          <table width="95%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolorlight="#2583BC" bordercolordark="#ffffff">
	                                  <tr>
	                                    <td width="100%"  valign="top">
	                                        <asp:GridView ID="GridView1" runat="server" Width="100%" border="0"  AllowPaging="true" PageSize="5"
                                                CellPadding="0"  AutoGenerateColumns="False"  DataKeyNames="Id"
                                                onrowdeleting="GridView1_RowDeleting" 
                                                 EnableModelValidation="True" >
	                                            <Columns>
                                                <asp:TemplateField HeaderText="全选">
	        <HeaderTemplate>
                全选
                <input name="all" type="checkbox" onclick="selectall('ids');" />
            </HeaderTemplate>
	        <ItemTemplate>
                  <input type="checkbox" value="<%# DataBinder.Eval(Container.DataItem, "Id") %>" name="ids" />
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" />
            <ItemStyle CssClass="greytd" />
	    </asp:TemplateField>
	                                                <asp:BoundField  HeaderText="ID" ItemStyle-CssClass="greytd" DataField="ID">
	                                                    <ItemStyle CssClass="greytd" HorizontalAlign="Center"></ItemStyle>
                                                    </asp:BoundField>
	                                                <asp:BoundField HeaderText="歌曲名称" ItemStyle-CssClass="greytd" 
                                                        DataField="Name">
	                                                    <ItemStyle CssClass="greytd" HorizontalAlign="Center"></ItemStyle>
                                                    </asp:BoundField>
                                                    <asp:BoundField HeaderText="歌曲描述"  ItemStyle-CssClass="greytd" 
                                                        DataField="Description">
                                                    </asp:BoundField>
                                                    <asp:BoundField DataField="Author" HeaderText="作者">
                                                    <ItemStyle CssClass="greytd" HorizontalAlign="Center" />
                                                    </asp:BoundField>
                                                    <asp:TemplateField HeaderText="状态" >
	                                                    <HeaderTemplate>状态</HeaderTemplate>
	                                                    <ItemTemplate>
	                                                   <%#Eval("Release").ToString().ToLower()=="true"?"发布":"未发布"%>
	                                                    </ItemTemplate>
	                                                    <ItemStyle HorizontalAlign="Center" />
                                                        <ItemStyle CssClass="greytd" />
	                                                </asp:TemplateField>
	                                                 <asp:TemplateField HeaderText="截图">
                                                    <HeaderTemplate>
                                                        截图</HeaderTemplate>
                                                    <ItemTemplate>
                                                        <img src='/uploadfiles/image/<%#Eval("BigImg")%>' width="50px" />
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemStyle CssClass="greytd" />
                                                </asp:TemplateField>  
                                                     <asp:TemplateField HeaderText="缩略图">
                                                    <HeaderTemplate>
                                                        缩略图</HeaderTemplate>
                                                    <ItemTemplate>
                                                        <img src='/uploadfiles/image/<%#Eval("Thumbimg")%>' width="50px" />
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                    <ItemStyle CssClass="greytd" />
                                                </asp:TemplateField>  
                                                    <asp:BoundField DataField="Uploaddatatime" HeaderText="上传时间" >
                                                    <ItemStyle CssClass="greytd" HorizontalAlign="Center" />
                                                    </asp:BoundField>
	                                                <asp:TemplateField HeaderText="管理">
	                                                    <HeaderTemplate>
                                                            管理
                                                        </HeaderTemplate>
	                                                    <ItemTemplate>
                                                             <asp:LinkButton ID="mod" runat="server" OnClick="Mod_click"  CommandArgument='<%# DataBinder.Eval(Container.DataItem, "id") %>' >修改</asp:LinkButton>
                                                             <asp:LinkButton ID="del" runat="server" CommandName="delete" OnClientClick="return confirm('此操作不能恢复,您确定删除吗?');">删除</asp:LinkButton>
                                                        </ItemTemplate>
                                                        <ItemStyle HorizontalAlign="Center" />
                                                        <ItemStyle CssClass="greytd" />
	                                                </asp:TemplateField>
	                                            </Columns>
	                                            <PagerTemplate>
	                                            </PagerTemplate>
	                                        </asp:GridView>
	                                    </td>
	                                </tr>
	                          </table>
	                       </td>
	              </tr>  
	           </table>
	           <!--分页开始-->
	           <asp:Label ID="pagehtml" runat="server" />
		       <!--分页结束-->  
          </td>
       </tr>
  </table>	
</form>
</body>
</html>